package com.hh.bss.project.vo.query;

import java.io.Serializable;
import java.util.Date;

import com.hh.bss.base.BaseQuery;
import com.hh.bss.util.DateConvertUtils;

public class SearchRpeportQuery extends BaseQuery implements Serializable {

	private static final long serialVersionUID = -1887987345344934501L;
	public static final String DATE_FORMAT = "yyyy-MM-dd";

	private String projectIds;

	private String companyId;

	private Date dateStart;

	private Date dateEnd;

	public String getProjectIds() {
		return projectIds;
	}

	public void setProjectIds(String projectIds) {
		this.projectIds = projectIds;
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	
	public String getDateStartString() {
		return DateConvertUtils.format(getDateStart(),DATE_FORMAT);
	}
	public void setDateStartString(String value) {
		setDateStart(DateConvertUtils.parse(value, DATE_FORMAT,Date.class));
	}
	
	public Date getDateStart() {
		return dateStart;
	}

	public void setDateStart(Date dateStart) {
		this.dateStart = dateStart;
	}

	public String getDateEndString() {
		return DateConvertUtils.format(getDateStart(),DATE_FORMAT);
	}
	public void setDateEndString(String value) {
		setDateEnd(DateConvertUtils.parse(value, DATE_FORMAT,Date.class));
	}
	public Date getDateEnd() {
		return dateEnd;
	}

	public void setDateEnd(Date dateEnd) {
		this.dateEnd = dateEnd;
	}

}
